//信息
import request from '@/utils/request'

// 查询信息列表
export function listBasenews(query) {
  return request({
    url: '/admin/system/basenews/list',
    method: 'get',
    params: query
  })
}

export function addBasenews(data) {
  return request({
    url: '/admin/system/basenews/add',
    method: 'post',
    data
  })
}

export function editBasenews(data) {
  return request({
    url: '/admin/system/basenews/update',
    method: 'post',
    data
  })
}

//新闻类型枚举
export function listNewTypes(params) {
  return request({
    url: '/admin/system/basenews/listNewTypes',
    method: 'get',
    params
  })
}


